import request from "@/utils/request";

// 获取物流信息logistics
export const getLogistics = () => {
  return request("/manager/business-hall/tree");
};

// 机构信息
export const getMechanism = () => {
  return request("mechanism");
};

// 机构信息详情
export const getMechanismDetailed = (id) => {
  return request(`/manager/business-hall/${id}`);
};
// 机构详情二级
export const getTwoDetailed = (params) => {
  return request({
    method: "get",
    url: "/manager/areas/children",
    params,
  });
};

// 获取员工数据
export const getUserList = (params) => {
  return request({
    method: "get",
    url: "/manager/business-hall/user/page",
    params,
  });
};

// 获取业务范围
export const getScope = (id, type, params) => {
  return request(`/manager/business-hall/scope/${id}/${type}`, params);
};
